﻿using System;
using System.Collections.Generic;
using System.Reflection;
using System.Text;

using MicroMq.Core;
using MicroMq.Core.Helper;

using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;

namespace Microsoft.AspNetCore.Builder
{
    public static class MicroMqBuilderExtensions
    {
        public static IApplicationBuilder UseMicroMq(this IApplicationBuilder app)
        {
            app.ApplicationServices.GetRequiredService<MicroMqFactory>().Init();

            return app;
        }


    }
}
